package com.zhl.media.commonres.base;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.mvp.IPresenter;
import com.zhl.media.commonres.view.LoadingDialog;


public abstract class AppActivity<T extends IPresenter> extends BaseActivity<T>{

    LoadingDialog dialog;


    public void showDiglog(String msg){
        dialog = new LoadingDialog.Builder(this).setMessage(msg).setCancelable(false).setCancelOutside(false).create();
        dialog.show();
    }

    public void showDiglog(){
        dialog = new LoadingDialog.Builder(this).setCancelable(false).setCancelOutside(false).create();
        dialog.show();
    }

    public void hideDiglog(){
        dialog.dismiss();
    }

}
